//用来放置项目配置信息
console.log("获取环境变量:", import.meta.env)
const BASE_URL = import.meta.env.VITE_BASE_URL
export const API_CONFIG={
    loginApi: `${BASE_URL}/auth/login`,
    logoutApi: `${BASE_URL}/auth/logout`,
    getUserListApi: `${BASE_URL}/user/list`,
    deleteUserApi: `${BASE_URL}/user/delete`,
    addUserApi: `${BASE_URL}/user/add`,
    updateUserApi: `${BASE_URL}/user/update`,
    //定义集群资源操作的接口
    getClusterListApi: `${BASE_URL}/cluster/list`,
    addClusterApi: `${BASE_URL}/cluster/add`,
    deleteClusterApi:`${BASE_URL}/cluster/delete`,
    getClusterApi:`${BASE_URL}/cluster/get`,
    getClusterDetailApi:`${BASE_URL}/cluster/detail`,
    updateClusterApi:`${BASE_URL}/cluster/update`,
    statisticsClusterApi:`${BASE_URL}/cluster/statistics`,
    //节点接口
    getNodeListApi:`${BASE_URL}/node/list`,
    updateNodeApi:`${BASE_URL}/node/update`,
    //namespace接口
    getNamespaceListApi:`${BASE_URL}/namespace/list`,
    getNamespaceDetailApi:`${BASE_URL}/namespace/detail`,
    createNamespaceApi: `${BASE_URL}/namespace/create`,
    deleteNamespaceApi: `${BASE_URL}/namespace/delete`,
    updateNamespaceApi: `${BASE_URL}/namespace/update`,
    copyNamespaceApi: `${BASE_URL}/namespace/copy`,
    // Pod接口
    getPodListApi: `${BASE_URL}/pod/list`,
    deletePodListApi: `${BASE_URL}/pod/deleteList`,
    deletePodApi: `${BASE_URL}/pod/delete`,
    getPodApi: `${BASE_URL}/pod/get`,
    //deployment接口
    getDeploymentListApi: `${BASE_URL}/deployment/list`,
    deleteDeploymentApi: `${BASE_URL}/deployment/delete`,
    getDeploymentApi: `${BASE_URL}/deployment/get`,
    createDeploymentApi: `${BASE_URL}/deployment/create`,
    updateDeploymentApi: `${BASE_URL}/deployment/update`,
    //rs接口
    getReplicaSetListApi: `${BASE_URL}/replicaset/list`,
    // configmap接口
    getConfigMapListApi: `${BASE_URL}/configmap/list`,
    deleteConfigMapApi: `${BASE_URL}/configmap/delete`,
    getConfigMapApi: `${BASE_URL}/configmap/get`,
    createConfigMapApi: `${BASE_URL}/configmap/create`,
    updateConfigMapApi:`${BASE_URL}/configmap/update`,
    //secret接口
    getSecretListApi: `${BASE_URL}/secret/list`,
    deleteSecretMapApi: `${BASE_URL}/secret/delete`,
    getSecretApi: `${BASE_URL}/secret/get`,
    createSecretApi: `${BASE_URL}/secret/create`,
    updateSecretApi: `${BASE_URL}/secret/update`,
    // pv接口
    getPVListApi: `${BASE_URL}/pv/list`,
    deletePVApi: `${BASE_URL}/pv/delete`,
    getPVApi: `${BASE_URL}/pv/get`,
    createPVApi: `${BASE_URL}/pv/create`,
    updatePVApi: `${BASE_URL}/pv/update`,
    getStorageClassListApi: `${BASE_URL}/storageclass/list`,
    // pvc接口
    getPVCListApi: `${BASE_URL}/pvc/list`,
    deletePVCApi: `${BASE_URL}/pvc/delete`,
    getPVCApi: `${BASE_URL}/pvc/get`,
    createPVCApi: `${BASE_URL}/pvc/create`,
    updatePVCApi: `${BASE_URL}/pvc/update`,
    //statefulset接口
    getStatefulSetListApi:`${BASE_URL}/statefulset/list`,
    deleteStatefulSetApi: `${BASE_URL}/statefulset/delete`,
    getStatefulSetApi: `${BASE_URL}/statefulset/get`,
    createStatefulSetApi: `${BASE_URL}/statefulset/create`,
    updateStatefulSetApi: `${BASE_URL}/statefulset/update`,
    //daemonset接口
    getDaemonSetListApi:`${BASE_URL}/daemonset/list`,
    deleteDaemonSetApi: `${BASE_URL}/daemonset/delete`,
    getDaemonSetApi: `${BASE_URL}/daemonset/get`,
    createDaemonSetApi:`${BASE_URL}/daemonset/create`,
    updateDaemonSetApi: `${BASE_URL}/daemonset/update`,
    //cronjob接口
    getCronJobListApi:`${BASE_URL}/cronjob/list`,
    deleteCronJobApi: `${BASE_URL}/cronjob/delete`,
    getCronJobApi: `${BASE_URL}/cronjob/get`,
    createCronJobApi: `${BASE_URL}/cronjob/create`,
    updateCronJobApi: `${BASE_URL}/cronjob/update`,
    //service接口
    getServiceListApi:`${BASE_URL}/service/list`,
    deleteServiceApi: `${BASE_URL}/service/delete`,
    getServiceApi: `${BASE_URL}/service/get`,
    createServiceApi: `${BASE_URL}/service/create`,
    updateServiceApi: `${BASE_URL}/service/update`,
    //ingress接口
    getIngressListApi:`${BASE_URL}/ingress/list`,
    deleteIngressApi: `${BASE_URL}/ingress/delete`,
    getIngressApi:`${BASE_URL}/ingress/get`,
    getIngressTopologyApi:`${BASE_URL}/ingress/topology`,
    createIngressApi: `${BASE_URL}/ingress/create`,
    updateIngressApi: `${BASE_URL}/ingress/update`,
    getIngressClassListApi:`${BASE_URL}/ingressclass/list`,
    //tools接口
    createOrUpdateByYamlApi: `${BASE_URL}/tools/yaml`

   
}
export const CONFIG = {
    TOKEN_NAME: "Authorization"
}